// import * as actions from '../actions/getnum'
// const counter=(state=0,action)=>{
//     console.log(action.num)
    
//     switch(action.type){
//         case actions.add:
//             return state+1;
//         case actions.move:
//             return state-1;
//         default:
//             return state;
//     }
// }
//console.log('没有进来吗')
const getLogin=(state={isLogin:false},action)=>{
    console.log(action.type,'type')
    switch(action.type){
        case 'sign':
        return state.isLogin=true
        case 'tion':
            return state.isLogin=false
            default:
                return state
    }
    
}
//console.log(state.isLogin)
export default getLogin